<?php
namespace app\admin\validate;

use think\Validate;

class News extends Validate
{
    protected $rule = [
        'title' => ['require'],
        'origin' => ['require'],
        'text' => ['require'],
    ];

    // 提示信息
    protected $message = [
        'title.require' => '请您输入新闻标题!',
        'origin.require' => '请您输入新闻链接!',
        'text.require' => '请您输入新闻文本!',
    ];
}